package LogisticsSystem.po;

import java.util.ArrayList;
import java.util.List;

public class ReceiverExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ReceiverExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRIdIsNull() {
            addCriterion("r_id is null");
            return (Criteria) this;
        }

        public Criteria andRIdIsNotNull() {
            addCriterion("r_id is not null");
            return (Criteria) this;
        }

        public Criteria andRIdEqualTo(Integer value) {
            addCriterion("r_id =", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdNotEqualTo(Integer value) {
            addCriterion("r_id <>", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdGreaterThan(Integer value) {
            addCriterion("r_id >", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("r_id >=", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdLessThan(Integer value) {
            addCriterion("r_id <", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdLessThanOrEqualTo(Integer value) {
            addCriterion("r_id <=", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdIn(List<Integer> values) {
            addCriterion("r_id in", values, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdNotIn(List<Integer> values) {
            addCriterion("r_id not in", values, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdBetween(Integer value1, Integer value2) {
            addCriterion("r_id between", value1, value2, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdNotBetween(Integer value1, Integer value2) {
            addCriterion("r_id not between", value1, value2, "rId");
            return (Criteria) this;
        }

        public Criteria andRNameIsNull() {
            addCriterion("r_name is null");
            return (Criteria) this;
        }

        public Criteria andRNameIsNotNull() {
            addCriterion("r_name is not null");
            return (Criteria) this;
        }

        public Criteria andRNameEqualTo(String value) {
            addCriterion("r_name =", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameNotEqualTo(String value) {
            addCriterion("r_name <>", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameGreaterThan(String value) {
            addCriterion("r_name >", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameGreaterThanOrEqualTo(String value) {
            addCriterion("r_name >=", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameLessThan(String value) {
            addCriterion("r_name <", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameLessThanOrEqualTo(String value) {
            addCriterion("r_name <=", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameLike(String value) {
            addCriterion("r_name like", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameNotLike(String value) {
            addCriterion("r_name not like", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameIn(List<String> values) {
            addCriterion("r_name in", values, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameNotIn(List<String> values) {
            addCriterion("r_name not in", values, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameBetween(String value1, String value2) {
            addCriterion("r_name between", value1, value2, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameNotBetween(String value1, String value2) {
            addCriterion("r_name not between", value1, value2, "rName");
            return (Criteria) this;
        }

        public Criteria andRPhoneIsNull() {
            addCriterion("r_phone is null");
            return (Criteria) this;
        }

        public Criteria andRPhoneIsNotNull() {
            addCriterion("r_phone is not null");
            return (Criteria) this;
        }

        public Criteria andRPhoneEqualTo(String value) {
            addCriterion("r_phone =", value, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneNotEqualTo(String value) {
            addCriterion("r_phone <>", value, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneGreaterThan(String value) {
            addCriterion("r_phone >", value, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("r_phone >=", value, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneLessThan(String value) {
            addCriterion("r_phone <", value, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneLessThanOrEqualTo(String value) {
            addCriterion("r_phone <=", value, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneLike(String value) {
            addCriterion("r_phone like", value, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneNotLike(String value) {
            addCriterion("r_phone not like", value, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneIn(List<String> values) {
            addCriterion("r_phone in", values, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneNotIn(List<String> values) {
            addCriterion("r_phone not in", values, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneBetween(String value1, String value2) {
            addCriterion("r_phone between", value1, value2, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPhoneNotBetween(String value1, String value2) {
            addCriterion("r_phone not between", value1, value2, "rPhone");
            return (Criteria) this;
        }

        public Criteria andRPrivinceIsNull() {
            addCriterion("r_privince is null");
            return (Criteria) this;
        }

        public Criteria andRPrivinceIsNotNull() {
            addCriterion("r_privince is not null");
            return (Criteria) this;
        }

        public Criteria andRPrivinceEqualTo(String value) {
            addCriterion("r_privince =", value, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceNotEqualTo(String value) {
            addCriterion("r_privince <>", value, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceGreaterThan(String value) {
            addCriterion("r_privince >", value, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceGreaterThanOrEqualTo(String value) {
            addCriterion("r_privince >=", value, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceLessThan(String value) {
            addCriterion("r_privince <", value, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceLessThanOrEqualTo(String value) {
            addCriterion("r_privince <=", value, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceLike(String value) {
            addCriterion("r_privince like", value, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceNotLike(String value) {
            addCriterion("r_privince not like", value, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceIn(List<String> values) {
            addCriterion("r_privince in", values, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceNotIn(List<String> values) {
            addCriterion("r_privince not in", values, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceBetween(String value1, String value2) {
            addCriterion("r_privince between", value1, value2, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRPrivinceNotBetween(String value1, String value2) {
            addCriterion("r_privince not between", value1, value2, "rPrivince");
            return (Criteria) this;
        }

        public Criteria andRCityIsNull() {
            addCriterion("r_city is null");
            return (Criteria) this;
        }

        public Criteria andRCityIsNotNull() {
            addCriterion("r_city is not null");
            return (Criteria) this;
        }

        public Criteria andRCityEqualTo(String value) {
            addCriterion("r_city =", value, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityNotEqualTo(String value) {
            addCriterion("r_city <>", value, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityGreaterThan(String value) {
            addCriterion("r_city >", value, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityGreaterThanOrEqualTo(String value) {
            addCriterion("r_city >=", value, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityLessThan(String value) {
            addCriterion("r_city <", value, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityLessThanOrEqualTo(String value) {
            addCriterion("r_city <=", value, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityLike(String value) {
            addCriterion("r_city like", value, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityNotLike(String value) {
            addCriterion("r_city not like", value, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityIn(List<String> values) {
            addCriterion("r_city in", values, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityNotIn(List<String> values) {
            addCriterion("r_city not in", values, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityBetween(String value1, String value2) {
            addCriterion("r_city between", value1, value2, "rCity");
            return (Criteria) this;
        }

        public Criteria andRCityNotBetween(String value1, String value2) {
            addCriterion("r_city not between", value1, value2, "rCity");
            return (Criteria) this;
        }

        public Criteria andRAddressIsNull() {
            addCriterion("r_address is null");
            return (Criteria) this;
        }

        public Criteria andRAddressIsNotNull() {
            addCriterion("r_address is not null");
            return (Criteria) this;
        }

        public Criteria andRAddressEqualTo(String value) {
            addCriterion("r_address =", value, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressNotEqualTo(String value) {
            addCriterion("r_address <>", value, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressGreaterThan(String value) {
            addCriterion("r_address >", value, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressGreaterThanOrEqualTo(String value) {
            addCriterion("r_address >=", value, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressLessThan(String value) {
            addCriterion("r_address <", value, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressLessThanOrEqualTo(String value) {
            addCriterion("r_address <=", value, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressLike(String value) {
            addCriterion("r_address like", value, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressNotLike(String value) {
            addCriterion("r_address not like", value, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressIn(List<String> values) {
            addCriterion("r_address in", values, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressNotIn(List<String> values) {
            addCriterion("r_address not in", values, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressBetween(String value1, String value2) {
            addCriterion("r_address between", value1, value2, "rAddress");
            return (Criteria) this;
        }

        public Criteria andRAddressNotBetween(String value1, String value2) {
            addCriterion("r_address not between", value1, value2, "rAddress");
            return (Criteria) this;
        }

        public Criteria andCIdIsNull() {
            addCriterion("c_id is null");
            return (Criteria) this;
        }

        public Criteria andCIdIsNotNull() {
            addCriterion("c_id is not null");
            return (Criteria) this;
        }

        public Criteria andCIdEqualTo(Integer value) {
            addCriterion("c_id =", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotEqualTo(Integer value) {
            addCriterion("c_id <>", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThan(Integer value) {
            addCriterion("c_id >", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_id >=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThan(Integer value) {
            addCriterion("c_id <", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThanOrEqualTo(Integer value) {
            addCriterion("c_id <=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdIn(List<Integer> values) {
            addCriterion("c_id in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotIn(List<Integer> values) {
            addCriterion("c_id not in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdBetween(Integer value1, Integer value2) {
            addCriterion("c_id between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotBetween(Integer value1, Integer value2) {
            addCriterion("c_id not between", value1, value2, "cId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}